package com.flydust.apipulse.repository;

import com.flydust.apipulse.entity.Endpoint;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EndpointRepository extends JpaRepository<Endpoint, Long> {
    List<Endpoint> findByProjectId(Long projectId);
    
    List<Endpoint> findByProjectIdAndDirectoryId(Long projectId, Long directoryId);
    
    List<Endpoint> findByProjectIdAndDirectoryIdIsNull(Long projectId);
}